<html>
<a href="#myModal" role="button" class="btn" data-toggle="modal">Launch demo modal</a>
 
<!-- Modal -->
<div id="myModal" class="modal hide fade" align="center" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Create a new Event</h3>
</div>
<div class="modal-body">
<div>
				<% @event= Event.new if @event.nil? %>
				<%= form_for @event, :html => {:multipart => true} do |f| %>
						<p><%=f.text_field(:title, :placeholder => "Enter the event's Title", :style=>'width: 320px;')%></p>
						<p>Dates:  &nbsp; <%=f.text_field(:start_date, :placeholder => "DD/MM/YYYY", :style=>'width: 90px;')%> to <%=f.text_field(:end_date, :placeholder => "DD/MM/YYYY", :style=>'width: 90px;')%></p>
						<p><%=f.text_area(:description, :style=>'width: 320px;height:200px',:placeholder => "Enter the event's description")%></p>
						<p>Image: <%= f.file_field(:photo) %> </p>
				<% end %>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</html>
